package com.wenxixuanwu.fruitstore.mapper;

import com.wenxixuanwu.fruitstore.entity.OrderItem;
import com.wenxixuanwu.fruitstore.entity.OrderList;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper {
    /**
     * 插入订单数据
     * @param order 订单的数据
     * @return 受影响的行数
     */
    Integer insertOrder(OrderList order);

    /**
     * 插入订单项
     * @param orderItem 订单数据
     * @return
     */
    Integer insertOrderItem(OrderItem orderItem);

}
